package com.googlecode.gaal.data.impl;

import java.util.HashMap;
import java.util.Iterator;

public class HashMultiset<E> extends AbstractMapMultiset<E> {

    public HashMultiset() {
        super(new HashMap<E, Integer>());
    }
    
    public HashMultiset(Iterator<E> iterator) {
        this();
        while (iterator.hasNext()) {
            add(iterator.next());
        }
    }
}
